import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.StringTokenizer;


public class Read {
	
	public Read() throws FileNotFoundException{
		

	}
	
	public void readFromFile() throws IOException{
		
	    FileReader fr = new FileReader("test.txt");
	    BufferedReader br = new BufferedReader(fr);
	    
	    String zeile = "";

	    try {
			while( (zeile = br.readLine()) != null )
			{
			  System.out.println(zeile);
			}
		} catch (IOException e) {
			
			e.printStackTrace();
		}
	    finally{
	    	br.close();
	    }
	}
	
	public void checkUser(String mail){//Herbert Pichler <herbert@vigaun.info>
		
		StringTokenizer s = new StringTokenizer(mail, "<", false);
		while(s.hasMoreTokens()) {
		     s.nextToken(); //Was auch immer du mit diesem String dann machen willst
		}
		
	}

}
